home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Development Tools & Languages / • Other Platforms / PCCTS 1.31 / Documentation / PCCTS-handling includes < prev    next >
Encoding:
Internet Message Format  |  1995-03-10  |  1.1 KB  |  [TEXT/????]

  1. Path: gallant.apple.com!murky.apple.com!decwrl!purdue!mozo.cc.purdue.edu!garage.
  2. ecn.purdue.edu!parrt
  3. From: parrt@garage.ecn.purdue.edu (Terence J Parr)
  4. Newsgroups: comp.compilers.tools.pccts
  5. Subject: Re: PCCTS 1.30b6 is at the ftp site
  6. Date: 12 Nov 1994 19:01:49 GMT
  7. Organization: Purdue University Engineering Computer Network
  8. Lines: 26
  9. Message-ID: <3a33et$t6l@mozo.cc.purdue.edu>
  10. References: <39bg5p$na@nntpd.lkg.dec.com> <1994Nov11.180204.23775@worldbank.org>
  11. NNTP-Posting-Host: garage.ecn.purdue.edu
  12.  
  13. Tony,
  14.  
  15. What you want is easy to do:
  16.  
  17. a : PARSE THIS
  18.     <<
  19.     DLGStringInput in(your string buf);
  20.     DLGLexer scan(&in);
  21.     ANTLRTokenBuffer pipe(&scan);
  22.     ANTLRToken atoken;
  23.     scan.setToken(&atoken);
  24.     NewParser parser;
  25.     parser.init();
  26.     parser.start_symbol();
  27.     >>
  28.     CONTINUE PARSING
  29.   ;
  30.  
  31. The parser will automatically continue where it left off before
  32. invoking the new parser.
  33.  
  34. This is how to handling include files etc... in C++ mode.
  35. Don't save the state, just "fork" a new parser!
  36.  
  37. Regards,
  38. Terence of the North
  39. ---------------------------------------------------------------------------
  40.